package cn.cloud.jianghai.userapi.feign;

import cn.cloud.jianghai.jianghaicommon.entity.R;
import cn.cloud.jianghai.userapi.dto.UserDto.UserDto;
import cn.cloud.jianghai.userapi.feign.fallback.UserFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author Jiang.h
 * created 2022/5/30 17:47
 */
@FeignClient(value = "jianghai-user", fallback = UserFallback.class)
public interface UserApi {

    String API_PREFIX = "/v1/api/order/";

    @PostMapping(API_PREFIX + "findUserList")
    R<List<UserDto>> findUserList(@RequestBody List<Long> idList);
}
